package com.dhl.cloud.core.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.dhl.cloud.common.vdo.RoleBean;
import com.dhl.cloud.core.entity.Role;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    /**
     * 获取系统自带角色和用户新增
     * @param tenantid
     * @return
     */
    List<Role> selectBytenantid(String tenantid);

    List<Role> getSysRoleList();
    
    List<Role> selectAll();

    List<Role> selectAllBytenantid(String tenantid);

    List<RoleBean> selectByTenantidAndPcode(@Param("tenantid") String tenantid,@Param("platformcode")String platformcode);
}